<template>
	<view>
		<bl-bottom-fixed>
			<view class="flex-between text-c fs-20">
				<view class="flex-1" @click="goPage('/admin/record', 0)" >
					<image v-if="current == 0" src="~@/static/images/admin/ad1-1.png" class="width-48 height-48 img-c"></image>
					<image v-else src="~@/static/images/admin/ad1.png" class="width-48 height-48 img-c"></image>
					<view :style="current == 0 ? 'color:#1089FF' : 'color:#666'">数据中心</view>
				</view>
				<view class="flex-1" @click="goPage('/admin/index', 1)" >
					<image v-if="current == 1" src="~@/static/images/admin/ad2-2.png" class="width-48 height-48 img-c"></image>
					<image v-else src="~@/static/images/admin/ad2.png" class="width-48 height-48 img-c"></image>
					<view :style="current == 1 ? 'color:#1089FF' : 'color:#666'">首页</view>
				</view>
				<view class="flex-1" @click="goPage('/TUIKit/components/TUIConversation/index-on', 2)">
					<image v-if="current == 2" src="~@/static/images/admin/ad3-3.png" class="width-48 height-48 img-c"></image>
					<image v-else src="~@/static/images/admin/ad3.png" class="width-48 height-48 img-c"></image>
					<view :style="current == 2 ? 'color:#1089FF' : 'color:#666'">法务群</view>
				</view>
				<view class="flex-1"@click="goPage('/admin/order', 3)">
					<image v-if="current == 3" src="~@/static/images/admin/ad4-4.png" class="width-48 height-48 img-c"></image>
					<image v-else src="~@/static/images/admin/ad4.png" class="width-48 height-48 img-c"></image>
					<view :style="current == 3 ? 'color:#1089FF' : 'color:#666'">工单</view>
				</view>
			</view>
		</bl-bottom-fixed>
	</view>
</template>

<script>
	import blBottomFixed from "@/components/baseUI/bl-bottom-fixed/index.vue"
	export default {
		components: {
			blBottomFixed
		},
		props: {
			current: {
				type: [Array, Number, String],
				default: ''
			}
		},
		data() {
			return {
				
			}
		},
		onLoad(e) {
			
		},
		methods: {
			goPage(e, index) {
				if (this.current == index) return;
				uni.redirectTo({
					url: e
				})
			}
		}
	}
</script>

<style>
</style>